using System.Windows;
using System.Windows.Controls;

namespace KarliCardsGui
{
    public class CardTemplateSelector : DataTemplateSelector
    {
        public DataTemplate CardTemplate { get; set; }
        public DataTemplate EmptyTemplate { get; set; }

        public override DataTemplate SelectTemplate(object item, DependencyObject container)
        {
            return item == null ? EmptyTemplate : CardTemplate;
        }
    }
} 